﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using M2B.GestionEntretiens.Contracts;
using M2B.GestionEntretiens.POCOS;

namespace M2B.GestionEntretiens.Models
{
    public class RefrentielsModel
    {
         #region Properties
        /// <summary>
        /// Questions Service
        /// </summary>
        private IReferentielsService _referentielsService;
        /// <summary>
        /// La liste des Questions
        /// </summary>
        public IEnumerable<Referentiel> Referentiels { get; set; }

        #endregion

        #region Constructeurs

        public RefrentielsModel(IReferentielsService referentielsService)
        {
            _referentielsService = referentielsService;
            Referentiels = _referentielsService.GetReferentiels();
        }
        #endregion
    }
}